package com.msb.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.msb.common.utils.PageUtils;
import com.msb.common.vo.CommonPageReq;
import com.msb.mall.core.entity.product.AttrGroupEntity;
import com.msb.mall.core.vo.product.AttrGroupWithAttrsVo;
import com.msb.mall.core.vo.product.SpuItemGroupAttrVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author leixu
 * @email xuleiwolf@163.com
 * @date 2024-04-19 10:08:56
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(CommonPageReq<Map<String, Object>> req, Long catelogId);

    PageUtils queryPageOld(Map<String, Object> params, Long catelogId);

    List<AttrGroupWithAttrsVo> getAttrgroupWithAttrsByCatelogId(Long categoryId);

    List<SpuItemGroupAttrVo> getAttrgroupWithSpuId(Long spuId, Long catalogId);

}

